package com.rabbit.eap.framework.modelMapper.jdk8;

import org.modelmapper.ModelMapper;
import org.modelmapper.Module;

/**
 * @projectName eap
 * @packageName com.rabbit.eap.framework.modelMapper.jdk8
 * @className BeanConverter
 * @author： rabbit
 * @version： 1.0
 * @since： 2020/5/14 19:51
 * <p>Description: Jdk8Module </p>

 */
public class Jdk8Module implements Module {

    @Override
    public void setupModule(ModelMapper modelMapper) {
        modelMapper.getConfiguration().getConverters().add(0, new FromOptionalConverter());
        modelMapper.getConfiguration().getConverters().add(0, new ToOptionalConverter());
    }
}
